<template>
    <el-menu mode="horizontal" :ellipsis="false">
        <el-menu-item index="title">戏曲字幕 唱词制作<small>({{ version }})</small></el-menu-item>
        <div class="flex-grow" />
        <el-menu-item index="guide"><guide-viewer /></el-menu-item>
        <el-menu-item index="extentions"><a target="_blank"
                href="https://gitee.com/xlgp/XiquZimuExtensions">插件</a></el-menu-item>
        <el-menu-item index="oldVersion"><a target="_blank"
                href="https://xlgp.github.io/opera-lyrics-builder/changci.html">旧版</a></el-menu-item>
        <el-menu-item index="gitee"><a target="_blank" href="https://gitee.com/xlgp/opera-lyrics-builder">
                <img src="https://gitee.com/static/images/logo-en.svg" alt="Gitee" width="30"
                    style="vertical-align: middle;" />
            </a></el-menu-item>
        <el-menu-item index="github"><a target="_blank" href="https://github.com/xlgp/opera-lyrics-builder">
                <svg viewBox="0 0 24 24" width="33" height="33" style="vertical-align: middle;">
                    <path fill="currentColor"
                        d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z">
                    </path>
                </svg>
            </a></el-menu-item>
    </el-menu>
</template>

<script lang="ts" setup>

const version = __APP_VERSION__;
</script>

<style scoped>
.flex-grow {
    flex-grow: 1;
}

.title {
    font-size: 1.5em;
    color: var(--el-color-primary-light-9);
}

small {
    margin-left: 10px;
}
</style>